﻿using Swashbuckle.AspNetCore.Annotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Alison.EFCore.Dto
{
    /// <summary>
    /// Mqtt消息对象
    /// </summary>
    [SwaggerSchema(Title = "Mqtt消息对象MqttMessageDto", Description = "Mqtt消息对象MqttMessageDto")]
    public class MqttMessageDto
    {
        /// <summary>
        /// 主题
        /// </summary>
        [SwaggerSchema(Title = "Mqtt消息", Description = "主题")]
        public string Topic { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        [SwaggerSchema(Title = "Mqtt消息", Description = "内容")]
        public string Payload { get; set; }

        /// <summary>
        /// 消息类型
        /// </summary>
        [SwaggerSchema(Title = "Mqtt消息", Description = "消息类型")]
        public string MessageType { get; set; }
    }
}
